﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>菜单管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="/Plugin/layui/css/layui.css" rel="stylesheet" />
    <link href="/Style/common.css" rel="stylesheet" />
</head>
<body>
    <div class="layui-fluid">
        <table class="layui-table" lay-filter="tableMenu" id="tableMenu"></table>
    </div>





    <div id="layerMenuGroup" style="display:none;">
        <div class="layui-fluid" style="margin-top:20px;">
            <form class="layui-form" lay-filter="formMenuGroup" id="formMenuGroup">
                <div class="layui-form-item">
                    <div class="layui-input-inline">
                        <input type="text" name="menuGroupName" placeholder="输入菜单组名称" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-input-inline">
                        <button class="layui-btn" lay-submit lay-filter="btnSave">保存</button>
                    </div>
                </div>
            </form>
            <table class="layui-table" lay-filter="tableMenuGroup" id="tableMenuGroup"></table>
        </div>
    </div>

    <div id="layerMenu" style="display:none;">
        <div class="layui-fluid" style="margin-top:20px;margin-left:10px;">
            <form class="layui-form" lay-filter="formMenu" id="formMenu">
                <div class="layui-form-item">
                    <div class="layui-input-inline">
                        <input type="text" name="menuName" id="menuName" placeholder="输入菜单名称" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-inline">
                        <input type="text" name="menuUrl" id="menuUrl" placeholder="输入菜单URL" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-inline">
                        <select id="selectMenuGroup"></select>
                    </div>
                </div>
            </form>
            <table class="layui-table" lay-filter="tableMenuGroup" id="tableMenuGroup"></table>
        </div>
    </div>






    <script type="text/html" id="toolbarBtn">
        <div class="layui-inline" lay-event="manageMenuGroup">
            <i class="layui-icon layui-icon-templeate-1"></i>
        </div>
        <div class="layui-inline" lay-event="addMenu">
            <i class="layui-icon layui-icon-add-1"></i>
        </div>
    </script>

    <script type="text/html" id="toolbarDone">
        <div class="layui-btn-group">
            <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="delete">
                <i class="layui-icon layui-icon-delete"></i>
            </button>
            <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="up">
                <i class="layui-icon layui-icon-up"></i>
            </button>
            <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="down">
                <i class="layui-icon layui-icon-down"></i>
            </button>
        </div>
    </script>
    <script type="text/html" id="toolbarMenuDone">
        <div class="layui-btn-group">
            <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="delete">
                <i class="layui-icon layui-icon-delete"></i>
            </button>
            <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="up">
                <i class="layui-icon layui-icon-up"></i>
            </button>
            <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="down">
                <i class="layui-icon layui-icon-down"></i>
            </button>
        </div>
    </script>
    <script src="/Plugin/layui/layui.js"></script>
    <script src="/Plugin/js/admin/menu.js"></script>

</body>
</html>